<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo1</title>
</head>
<body>
<div id="app">
    <a href="http://www.baidu.com" v-on:click="alertMsg()">seen</a>
</div>
<script src="vue.js"></script>
<script>
    var app = new Vue({
        el:"#app",
        data:{
            msg: "My name is LZUGIS"
        },
        methods:{
            alertMsg: function(evt){
                this.msg +="!";
                alert(this.msg);

//                if ( evt && evt.preventDefault )
//                    evt.preventDefault();
//                else
//                    window.event.returnValue = false;
//                return false;

                var e = (evt)?evt:window.event;
                if (window.event) {
                    e.cancelBubble=true;// ie下阻止冒泡
                } else {
                    e.stopPropagation();// 其它浏览器下阻止冒泡
                }
            }
        }
    });
</script>
</body>
</html>